let Koa=require("koa");
let router=require("koa-router")();
let static=require("koa-static");
let views=require("koa-views");
let nunjucks=require("nunjucks");
let app=new Koa();
app.use(static(__dirname+"/public/手机端"));
app.use(views(__dirname+"/public/手机端",{
    map:{html:"nunjucks"}
}))
app.listen(3000);
router.get("/",async ctx=>{
    await ctx.render("手机端首页晓舟")
})
router.get("/video",async ctx=>{
    await ctx.render("video")
})
router.get("/doc",async ctx=>{
    await ctx.render("内容")
})
app.use(router.routes())
